package cn.dglydrpy.fundmanagement.service;

import cn.dglydrpy.fundmanagement.service.dto.RiskAssessmentDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

public interface IRiskAssessmentService {
    int saveRiskAssessment(RiskAssessmentDto riskAssessmentDto);
    void updateRiskAssessment(RiskAssessmentDto riskAssessmentDto);
    void deleteRiskAssessment(Long id);
    RiskAssessmentDto getRiskAssessmentById(Long id);
    Page<RiskAssessmentDto> getRiskAssessmentsByConditions(String fundCode, String portfolioId, String riskLevel, int pageNo, int pageSize);
    List<RiskAssessmentDto> getAllRiskAssessments();
    void calculateRiskAssessmentForFund(String fundCode);
    void calculateRiskAssessmentForPortfolio(Long portfolioId);
}